import re
s = "<div>a</div><div>bb</div><div>cc</div>"
# s= "abbbbbb"
# s="a b 123 123123 12313"
# * + ?  {m} {m,n}
"""
<div>a</div>   a
<div>bb</div>  bb
<div>cc</div>  cc
"""
res = re.search(r'<div>(.*?)</div>', s)
print(res)